package gui;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Test {

	public static void main(String args[]) {
		try {
			new XYZParser(new FileInputStream(new File("factorial.java")));
			Token currentToken = null;
			do {
				currentToken = XYZParser.getNextToken();
				System.out
						.println(XYZParserConstants.tokenImage[currentToken.kind]);
			} while (!currentToken.image.equals(""));

		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
